Optimal. Leaf size=161 \[ \frac{1}{5} x^5 \left (a+b \tan ^{-1}\left (c x^2\right )\right )+\frac{b \log \left (c x^2-\sqrt{2} \sqrt{c} x+1\right )}{10 \sqrt{2} c^{5/2}}-\frac{b \log \left (c x^2+\sqrt{2} \sqrt{c} x+1\right )}{10 \sqrt{2} c^{5/2}}-\frac{b \tan ^{-1}\left (1-\sqrt{2} \sqrt{c} x\right )}{5 \sqrt{2} c^{5/2}}+\frac{b \tan ^{-1}\left (\sqrt{2} \sqrt{c} x+1\right )}{5 \sqrt{2} c^{5/2}}-\frac{2 b x^3}{15 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.112558, antiderivative size = 161, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 8, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.571, Rules used = {5033, 321, 297, 1162, 617, 204, 1165, 628} \[ \frac{1}{5} x^5 \left (a+b \tan ^{-1}\left (c x^2\right )\right )+\frac{b \log \left (c x^2-\sqrt{2} \sqrt{c} x+1\right )}{10 \sqrt{2} c^{5/2}}-\frac{b \log \left (c x^2+\sqrt{2} \sqrt{c} x+1\right )}{10 \sqrt{2} c^{5/2}}-\frac{b \tan ^{-1}\left (1-\sqrt{2} \sqrt{c} x\right )}{5 \sqrt{2} c^{5/2}}+\frac{b \tan ^{-1}\left (\sqrt{2} \sqrt{c} x+1\right )}{5 \sqrt{2} c^{5/2}}-\frac{2 b x^3}{15 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5033
Rule 321
Rule 297
Rule 1162
Rule 617
Rule 204
Rule 1165
Rule 628
Rubi steps
\begin{align*} \int x^4 \left (a+b \tan ^{-1}\left (c x^2\right )\right ) \, dx &=\frac{1}{5} x^5 \left (a+b \tan ^{-1}\left (c x^2\right )\right )-\frac{1}{5} (2 b c) \int \frac{x^6}{1+c^2 x^4} \, dx\\ &=-\frac{2 b x^3}{15 c}+\frac{1}{5} x^5 \left (a+b \tan ^{-1}\left (c x^2\right )\right )+\frac{(2 b) \int \frac{x^2}{1+c^2 x^4} \, dx}{5 c}\\ &=-\frac{2 b x^3}{15 c}+\frac{1}{5} x^5 \left (a+b \tan ^{-1}\left (c x^2\right )\right )-\frac{b \int \frac{1-c x^2}{1+c^2 x^4} \, dx}{5 c^2}+\frac{b \int \frac{1+c x^2}{1+c^2 x^4} \, dx}{5 c^2}\\ &=-\frac{2 b x^3}{15 c}+\frac{1}{5} x^5 \left (a+b \tan ^{-1}\left (c x^2\right )\right )+\frac{b \int \frac{1}{\frac{1}{c}-\frac{\sqrt{2} x}{\sqrt{c}}+x^2} \, dx}{10 c^3}+\frac{b \int \frac{1}{\frac{1}{c}+\frac{\sqrt{2} x}{\sqrt{c}}+x^2} \, dx}{10 c^3}+\frac{b \int \frac{\frac{\sqrt{2}}{\sqrt{c}}+2 x}{-\frac{1}{c}-\frac{\sqrt{2} x}{\sqrt{c}}-x^2} \, dx}{10 \sqrt{2} c^{5/2}}+\frac{b \int \frac{\frac{\sqrt{2}}{\sqrt{c}}-2 x}{-\frac{1}{c}+\frac{\sqrt{2} x}{\sqrt{c}}-x^2} \, dx}{10 \sqrt{2} c^{5/2}}\\ &=-\frac{2 b x^3}{15 c}+\frac{1}{5} x^5 \left (a+b \tan ^{-1}\left (c x^2\right )\right )+\frac{b \log \left (1-\sqrt{2} \sqrt{c} x+c x^2\right )}{10 \sqrt{2} c^{5/2}}-\frac{b \log \left (1+\sqrt{2} \sqrt{c} x+c x^2\right )}{10 \sqrt{2} c^{5/2}}+\frac{b \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\sqrt{2} \sqrt{c} x\right )}{5 \sqrt{2} c^{5/2}}-\frac{b \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\sqrt{2} \sqrt{c} x\right )}{5 \sqrt{2} c^{5/2}}\\ &=-\frac{2 b x^3}{15 c}+\frac{1}{5} x^5 \left (a+b \tan ^{-1}\left (c x^2\right )\right )-\frac{b \tan ^{-1}\left (1-\sqrt{2} \sqrt{c} x\right )}{5 \sqrt{2} c^{5/2}}+\frac{b \tan ^{-1}\left (1+\sqrt{2} \sqrt{c} x\right )}{5 \sqrt{2} c^{5/2}}+\frac{b \log \left (1-\sqrt{2} \sqrt{c} x+c x^2\right )}{10 \sqrt{2} c^{5/2}}-\frac{b \log \left (1+\sqrt{2} \sqrt{c} x+c x^2\right )}{10 \sqrt{2} c^{5/2}}\\ \end{align*}
Mathematica [A] time = 0.0482874, size = 179, normalized size = 1.11 \[ \frac{a x^5}{5}+\frac{b \log \left (c x^2-\sqrt{2} \sqrt{c} x+1\right )}{10 \sqrt{2} c^{5/2}}-\frac{b \log \left (c x^2+\sqrt{2} \sqrt{c} x+1\right )}{10 \sqrt{2} c^{5/2}}+\frac{b \tan ^{-1}\left (\frac{2 \sqrt{c} x-\sqrt{2}}{\sqrt{2}}\right )}{5 \sqrt{2} c^{5/2}}+\frac{b \tan ^{-1}\left (\frac{2 \sqrt{c} x+\sqrt{2}}{\sqrt{2}}\right )}{5 \sqrt{2} c^{5/2}}-\frac{2 b x^3}{15 c}+\frac{1}{5} b x^5 \tan ^{-1}\left (c x^2\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.037, size = 140, normalized size = 0.9 \begin{align*}{\frac{a{x}^{5}}{5}}+{\frac{b{x}^{5}\arctan \left ( c{x}^{2} \right ) }{5}}-{\frac{2\,b{x}^{3}}{15\,c}}+{\frac{b\sqrt{2}}{20\,{c}^{3}}\ln \left ({ \left ({x}^{2}-\sqrt [4]{{c}^{-2}}x\sqrt{2}+\sqrt{{c}^{-2}} \right ) \left ({x}^{2}+\sqrt [4]{{c}^{-2}}x\sqrt{2}+\sqrt{{c}^{-2}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{c}^{-2}}}}}+{\frac{b\sqrt{2}}{10\,{c}^{3}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{c}^{-2}}}}}+1 \right ){\frac{1}{\sqrt [4]{{c}^{-2}}}}}+{\frac{b\sqrt{2}}{10\,{c}^{3}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{c}^{-2}}}}}-1 \right ){\frac{1}{\sqrt [4]{{c}^{-2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.52734, size = 375, normalized size = 2.33 \begin{align*} \frac{1}{5} \, a x^{5} + \frac{1}{60} \,{\left (12 \, x^{5} \arctan \left (c x^{2}\right ) - c{\left (\frac{8 \, x^{3}}{c^{2}} + \frac{3 \,{\left (\frac{\sqrt{2} \log \left (\sqrt{c^{2}} x^{2} + \sqrt{2}{\left (c^{2}\right )}^{\frac{1}{4}} x + 1\right )}{{\left (c^{2}\right )}^{\frac{3}{4}}} - \frac{\sqrt{2} \log \left (\sqrt{c^{2}} x^{2} - \sqrt{2}{\left (c^{2}\right )}^{\frac{1}{4}} x + 1\right )}{{\left (c^{2}\right )}^{\frac{3}{4}}} - \frac{\sqrt{2} \log \left (\frac{2 \, \sqrt{c^{2}} x - \sqrt{2} \sqrt{-\sqrt{c^{2}}} + \sqrt{2}{\left (c^{2}\right )}^{\frac{1}{4}}}{2 \, \sqrt{c^{2}} x + \sqrt{2} \sqrt{-\sqrt{c^{2}}} + \sqrt{2}{\left (c^{2}\right )}^{\frac{1}{4}}}\right )}{\sqrt{c^{2}} \sqrt{-\sqrt{c^{2}}}} - \frac{\sqrt{2} \log \left (\frac{2 \, \sqrt{c^{2}} x - \sqrt{2} \sqrt{-\sqrt{c^{2}}} - \sqrt{2}{\left (c^{2}\right )}^{\frac{1}{4}}}{2 \, \sqrt{c^{2}} x + \sqrt{2} \sqrt{-\sqrt{c^{2}}} - \sqrt{2}{\left (c^{2}\right )}^{\frac{1}{4}}}\right )}{\sqrt{c^{2}} \sqrt{-\sqrt{c^{2}}}}\right )}}{c^{2}}\right )}\right )} b \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.85234, size = 894, normalized size = 5.55 \begin{align*} \frac{12 \, b c x^{5} \arctan \left (c x^{2}\right ) + 12 \, a c x^{5} - 8 \, b x^{3} - 12 \, \sqrt{2} c \left (\frac{b^{4}}{c^{10}}\right )^{\frac{1}{4}} \arctan \left (-\frac{\sqrt{2} b^{3} c^{3} x \left (\frac{b^{4}}{c^{10}}\right )^{\frac{1}{4}} - \sqrt{2} \sqrt{\sqrt{2} b^{3} c^{7} x \left (\frac{b^{4}}{c^{10}}\right )^{\frac{3}{4}} + b^{4} c^{4} \sqrt{\frac{b^{4}}{c^{10}}} + b^{6} x^{2}} c^{3} \left (\frac{b^{4}}{c^{10}}\right )^{\frac{1}{4}} + b^{4}}{b^{4}}\right ) - 12 \, \sqrt{2} c \left (\frac{b^{4}}{c^{10}}\right )^{\frac{1}{4}} \arctan \left (-\frac{\sqrt{2} b^{3} c^{3} x \left (\frac{b^{4}}{c^{10}}\right )^{\frac{1}{4}} - \sqrt{2} \sqrt{-\sqrt{2} b^{3} c^{7} x \left (\frac{b^{4}}{c^{10}}\right )^{\frac{3}{4}} + b^{4} c^{4} \sqrt{\frac{b^{4}}{c^{10}}} + b^{6} x^{2}} c^{3} \left (\frac{b^{4}}{c^{10}}\right )^{\frac{1}{4}} - b^{4}}{b^{4}}\right ) - 3 \, \sqrt{2} c \left (\frac{b^{4}}{c^{10}}\right )^{\frac{1}{4}} \log \left (\sqrt{2} b^{3} c^{7} x \left (\frac{b^{4}}{c^{10}}\right )^{\frac{3}{4}} + b^{4} c^{4} \sqrt{\frac{b^{4}}{c^{10}}} + b^{6} x^{2}\right ) + 3 \, \sqrt{2} c \left (\frac{b^{4}}{c^{10}}\right )^{\frac{1}{4}} \log \left (-\sqrt{2} b^{3} c^{7} x \left (\frac{b^{4}}{c^{10}}\right )^{\frac{3}{4}} + b^{4} c^{4} \sqrt{\frac{b^{4}}{c^{10}}} + b^{6} x^{2}\right )}{60 \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 55.2367, size = 184, normalized size = 1.14 \begin{align*} \begin{cases} \frac{a x^{5}}{5} + \frac{b x^{5} \operatorname{atan}{\left (c x^{2} \right )}}{5} - \frac{2 b x^{3}}{15 c} - \frac{\sqrt [4]{-1} b \operatorname{atan}{\left (c x^{2} \right )}}{5 c^{8} \left (\frac{1}{c^{2}}\right )^{\frac{11}{4}}} - \frac{\left (-1\right )^{\frac{3}{4}} b \log{\left (x - \sqrt [4]{-1} \sqrt [4]{\frac{1}{c^{2}}} \right )}}{5 c^{13} \left (\frac{1}{c^{2}}\right )^{\frac{21}{4}}} + \frac{\left (-1\right )^{\frac{3}{4}} b \log{\left (x^{2} + i \sqrt{\frac{1}{c^{2}}} \right )}}{10 c^{13} \left (\frac{1}{c^{2}}\right )^{\frac{21}{4}}} + \frac{\left (-1\right )^{\frac{3}{4}} b \operatorname{atan}{\left (\frac{\left (-1\right )^{\frac{3}{4}} x}{\sqrt [4]{\frac{1}{c^{2}}}} \right )}}{5 c^{13} \left (\frac{1}{c^{2}}\right )^{\frac{21}{4}}} & \text{for}\: c \neq 0 \\\frac{a x^{5}}{5} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.30486, size = 228, normalized size = 1.42 \begin{align*} \frac{1}{20} \, b c^{9}{\left (\frac{2 \, \sqrt{2} \sqrt{{\left | c \right |}} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (2 \, x + \frac{\sqrt{2}}{\sqrt{{\left | c \right |}}}\right )} \sqrt{{\left | c \right |}}\right )}{c^{12}} + \frac{2 \, \sqrt{2} \sqrt{{\left | c \right |}} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (2 \, x - \frac{\sqrt{2}}{\sqrt{{\left | c \right |}}}\right )} \sqrt{{\left | c \right |}}\right )}{c^{12}} - \frac{\sqrt{2} \sqrt{{\left | c \right |}} \log \left (x^{2} + \frac{\sqrt{2} x}{\sqrt{{\left | c \right |}}} + \frac{1}{{\left | c \right |}}\right )}{c^{12}} + \frac{\sqrt{2} \sqrt{{\left | c \right |}} \log \left (x^{2} - \frac{\sqrt{2} x}{\sqrt{{\left | c \right |}}} + \frac{1}{{\left | c \right |}}\right )}{c^{12}}\right )} + \frac{3 \, b c x^{5} \arctan \left (c x^{2}\right ) + 3 \, a c x^{5} - 2 \, b x^{3}}{15 \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]